Add Tiger Style algorithms - 9 expert implementations with 102 tests#30
Merged
kassane merged 3 commits intoTheAlgorithms:mainfrom Nov 13, 2025
Merged
Add Tiger Style algorithms - 9 expert implementations with 102 tests#30kassane merged 3 commits intoTheAlgorithms:mainfrom
kassane merged 3 commits intoTheAlgorithms:mainfrom
Conversation
- Time simulation framework (deterministic testing) - Zero-recursion merge sort - Heavy-assertion knapsack DP - Bounded ring buffer (fail-fast FIFO) - Raft consensus algorithm - Two-phase commit protocol - VSR consensus (TigerBeetle's actual consensus) - Robin Hood hash table (cache-efficient) - Skip list (probabilistic ordered map) All implementations follow TigerBeetle's Tiger Style principles: - No recursion, explicit iteration with bounded loops - Heavy assertions (2+ per function) - Explicit u32/u64 types (never usize) - Fail-fast on invalid inputs - Zero technical debt Total: 102 tests, all passing
Member
|
Hi @copyleftdev, |
- Add 9 Tiger Style algorithms to runall.zig test runner - Add Tiger Style build configurations to build.zig - Includes: time_simulation, merge_sort_tiger, knapsack_tiger, ring_buffer, raft_consensus, two_phase_commit, vsr_consensus, robin_hood_hash, skip_list
Contributor
Author
|
@kassane updated |
kassane
approved these changes
Nov 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a comprehensive Tiger Style algorithm collection to showcase expert-level implementations following TigerBeetle's Tiger Style principles.
What's Included
9 Production-Quality Implementations (102 tests):
Tiger Style Principles
All implementations follow rigorous Tiger Style discipline:
Testing
All 102 tests pass:
Why This Matters
This showcases:
Files Changed
tiger_style/directory with 9 implementations + READMEDIRECTORY.mdto include Tiger Style sectionTotal: 4,351 lines of production-quality code